package com.ky.my.service.impl;

import com.ky.my.entity.Help;
import com.ky.my.mapper.HelpMapper;
import com.ky.my.service.HelpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ky.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hmt
 * @since 2024-06-20
 */
@Service
public class HelpServiceImpl extends ServiceImpl<HelpMapper, Help> implements HelpService {
    @Autowired
    HelpMapper helpMapper;
    @Override
    public R insertHelp(Help help) {
        int insert = helpMapper.insert(help);
        return R.ok(insert);
    }
}
